WARNING: This program has a logic error. The code runs, but it doesn't do what we want!

RULE: Your sample space and theoretical probability lists should have the same number of items.

  • Click Run and notice how your spinner only has three colors when it should have four.
  • Add .25 to the end of your theor_prob list, so your spinner shows four colors.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)